//
//  ZODGlobalStorage.m
//  ZTEOnlineDoc
//
//  Created by 万伟琦 on 2018/9/19.
//  Copyright © 2018年 ZTE. All rights reserved.
//

#import "ZODGlobalStorage.h"

@interface ZODGlobalStorage ()

@property (nonatomic, copy) NSString *userBaseUrl;

@end

@implementation ZODGlobalStorage

+(instancetype)sharedStorage {
    static ZODGlobalStorage *_instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [[ZODGlobalStorage alloc] init];
    });
    return _instance;
}



- (NSString *)previewBaseURLString {
    return [NSString stringWithFormat:@"%@/Mapi/UpLoadFileJSONService/service.opdssm", self.configuration.userBaseIntraIP];
}

- (NSString *)preConvertBaseURLString {
    return [NSString stringWithFormat:@"%@/api/prebatchconvert", self.userBaseUrl];
}

- (NSString *)authBaseURLString {
    return [NSString stringWithFormat:@"%@/Mapi/attachAuth/services.aassm", self.userBaseUrl];
}

- (NSString *)userBaseUrl {
    return self.configuration.userBaseUrl;
}


@end
